import { request } from "../utils/request.js"

// 新增预约
export const addBook = function(data){
	return request({
		url:'/book/add',
		method:'POST',
		data,
	})
}

// 根据 idNumber 查询预约记录
export const bookRecord = function(idNumber){
	return request({
		url:`/book/record?idNumber=${idNumber}`,
		method:'GET',
	})
}